package com.richinfo.util;

public enum TokenValidateExceptionCodeEnum implements CodeEnum<TokenValidateExceptionCodeEnum> {

    Success("0", "成功"), ReqError("-20", "非法请求"), TokenError("-20", "非法token"), TokenErrorOrNoexist("-22",
	    "token不存在或token已失效"), SYSException("-1", "系统错误");

    private String code;
    private String desc;

    private TokenValidateExceptionCodeEnum(String code, String desc) {
	this.code = code;
	this.desc = desc;
    }

    @Override
    public String code() {
	return code;
    }

    @Override
    public String desc() {
	return desc;
    }

    @Override
    public boolean equals(TokenValidateExceptionCodeEnum codeEnum) {
	// TODO Auto-generated method stub
	return false;
    }

    @Override
    public boolean equals(String code) {
	// TODO Auto-generated method stub
	return false;
    }

}
